package com.university.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Reason entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "reason", catalog = "university")

public class Reason implements java.io.Serializable {

	// Fields

	private Integer reasonId;
	private String reasonValue;
	private Integer reasonSort;
	private Boolean reasonEnable;

	// Constructors

	/** default constructor */
	public Reason() {
	}

	@Override
	public String toString() {
		return "Reason [reasonId=" + reasonId + ", reasonValue=" + reasonValue + ", reasonSort=" + reasonSort
				+ ", reasonEnable=" + reasonEnable + "]";
	}

	/** full constructor */
	public Reason(String reasonValue, Integer reasonSort, Boolean reasonEnable) {
		this.reasonValue = reasonValue;
		this.reasonSort = reasonSort;
		this.reasonEnable = reasonEnable;
	}

	// Property accessors
	@Id
	@GeneratedValue

	@Column(name = "reason_id", unique = true, nullable = false)

	public Integer getReasonId() {
		return this.reasonId;
	}

	public void setReasonId(Integer reasonId) {
		this.reasonId = reasonId;
	}

	@Column(name = "reason_value", length = 50)

	public String getReasonValue() {
		return this.reasonValue;
	}

	public void setReasonValue(String reasonValue) {
		this.reasonValue = reasonValue;
	}

	@Column(name = "reason_sort")

	public Integer getReasonSort() {
		return this.reasonSort;
	}

	public void setReasonSort(Integer reasonSort) {
		this.reasonSort = reasonSort;
	}

	@Column(name = "reason_enable", insertable = false)

	public Boolean getReasonEnable() {
		return this.reasonEnable;
	}

	public void setReasonEnable(Boolean reasonEnable) {
		this.reasonEnable = reasonEnable;
	}

}